<?xml version="1.0" ?>
<hibernate-configuration  xmlns="urn:nhibernate-configuration-2.2" >

  <!-- For simplicity, the NHibernate configuration is stored in this file.
  It must be named hibernate.cfg.xml and marked in Visual Studio to be copied
  to the output folder.  -->

  <session-factory>

    <!-- By default NHibernate is aggressive in closing connections between
    SQL statments.  This unfortunately causes a problem when reading ID
    numbers assigned by Access (e.g. in AutoNumber fields).  See comments
    in the Test 1 section of Program.cs. -->

    <!--<property name="hibernate.connection.release_mode">on_close</property>
    <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
    <property name="dialect">NHibernate.JetDriver.JetDialect, NHibernate.JetDriver</property>
    <property name="connection.driver_class">NHibernate.JetDriver.JetDriver, NHibernate.JetDriver</property>-->
    <property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
    <property name="connection.driver_class">NHibernate.Driver.SQLite20Driver</property>
    <!--property name="connection.connection_string">Data Source=testimage.db;Version=3</property-->
    <property name="dialect">NHibernate.Dialect.SQLiteDialect</property>
    <property name="query.substitutions">true=1;false=0</property>
    <!--property name="hibernate.show_sql">true</property-->

    <!-- The Sample.mdb file is located in the folder containing the
    solution file.  This is three folders upward.  Relative paths
    are supported in Jet connection strings.  -->

    <!--property name="connection.connection_string">Provider=Microsoft.Jet.OLEDB.4.0;Data Source=..\..\..\Sample.mdb</property>-->
  </session-factory>
</hibernate-configuration>
